import { http } from "/@/utils/http";

/** 查询出入库列表 */
export const getListApi = (params) => {
  return http.request<YTableRemoteResult>("get", "/api/psi/circulate/list", { params });
};

export const getApi = (id) => {
  return http.request("get", "/api/psi/circulate/" + id);

}

/** 创建出入库 */
export const createApi = (data) => {
  return http.request("post", "/api/psi/circulate", { data });
};

/** 修改出入库 */
export const updateApi = (data) => {
  return http.request("put", "/api/psi/circulate", { data });
};

/** 删除出入库 */
export const deleteApi = (ids) => {
  return http.request("delete", "/api/psi/circulate/" + ids);
};

export const unAuditApi = (id) => {
  return http.request("post", "/api/psi/circulate/un-audit/" + id);
}